<template>
  <div>
    <h1 v-for="(item, index) in list" :key="index">
      这是hello world子组件
      <h2>{{ item.title }}</h2>
      <div v-if="item.children">
        <hello :list="item.children" />
      </div>
    </h1>
  </div>
</template>

<script>
export default {
  name: "hello",
  props: ["list"],
  data() {
    return {};
  },
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
